
<strong>Current Names:</strong>
<% if @category.category_names.collect.length > 0 %>
<p id="click">(Click a language name to see and edit the name in that language)</p>
<p id="noDesc" style="display:none">No descriptions added yet.</p>
<% else %>
<p id="click" style="display:none">(Click a language name to see and edit the description in that language)</p>
<p id="noDesc">No descriptions added yet.</p>
<% end %>
<%= render :partial => "admin/shared/edit_javascript" %>

  <table id='category_description_table'>
    <%= render :partial => "admin/categories/edit_name", :collection => @category.category_names %>
  </table>
  
<hr />

<strong><%= CategoryName.l_attr(:new)%>:</strong>
<br /><br />
<div id='add_name'>
  <div id="category_name_new_errors"></div>
    <% remote_form_for(CategoryName.new, :url => {:action => 'add_ajax_name'}) do |f| %>
      <%= render :partial => 'admin/categories/new_name', :locals => {:category => @category, :form => f} %>
    <% end %>
    
</tr></table>
</div>